package com.beifu.manager.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.beifu.manager.model.AssetIn;
import com.beifu.manager.model.AssetInExample;
import com.beifu.manager.model.AssetModel;
import com.beifu.manager.model.AssetModelExample;

public interface AssetModelMapper {
    int countByExample(AssetModelExample example);

    int deleteByExample(AssetModelExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AssetModel record);

    int insertSelective(AssetModel record);

    List<AssetModel> selectByExample(AssetModelExample example);

    AssetModel selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AssetModel record, @Param("example") AssetModelExample example);

    int updateByExample(@Param("record") AssetModel record, @Param("example") AssetModelExample example);

    int updateByPrimaryKeySelective(AssetModel record);

    int updateByPrimaryKey(AssetModel record);
    
    /**
     * 获取资产型号分页数据
     * @param i
     * @param limit
     * @param example
     * @return
     */
	List<AssetModel> getAssetModelPage(@Param("start") int start, @Param("pageNum") int pageNum,  @Param("example")AssetModelExample example);
}